

package org.smallbun.fast.manage.activity.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.smallbun.fast.manage.activity.dao.ActivityMapper;
import org.smallbun.fast.manage.activity.entity.ActivityEntity;
import org.smallbun.fast.manage.activity.service.ActivityService;
import org.smallbun.framework.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;


/**
 * @author lovec
 */
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class, readOnly = true)
public class ActivityServiceImpl extends BaseServiceImpl<ActivityMapper, ActivityEntity> implements ActivityService {

	private final ActivityMapper activityMapper;

	public ActivityServiceImpl(ActivityMapper activityMapper) {
		this.activityMapper = activityMapper;
	}

	@Override
	public ActivityEntity getById(Serializable id) {
		return activityMapper.selectById(id);
	}

}
